﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace timetabling.core
{
    public class Subject : Basic
    {
        #region variables miembro
        
        private IList<Resource> resources = null;

        #endregion




        /// <summary>
        /// Nombre de la asignatura
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// Profesor de la asignatura
        /// </summary>
        public Teacher Teacher { get; set; }


        /// <summary>
        /// Horas a la semana
        /// </summary>
        public int HoursPerWeek { get; set; }

        /// <summary>
        /// Especialidad
        /// </summary>
        public Branch Branch { get; set; }

        public string Description { get; set; }

        public int Credits { get; set; }

        public string HourSecuence { get; set; }

        public Course Course { get; set; }


        /// <summary>
        /// I=Intefaz
        /// Lista de recursos de la asignatura.
        /// </summary>
        public IList<Resource> Resources
        {
            get
            {
                if (resources == null)
                {
                    resources = new List<Resource>();
                }
                return resources;
            }
            set
            {
                resources = value;
            }
        }

    }
}
